/*
  Tên:Trần Hoàng Lâm
  MSSV:11379951
  Lớp:DHTH7DLT
  Ngày hoàn thành:28/04/2012
  */
#ifndef FRMKHACHHANG_H
#define FRMKHACHHANG_H

#include <QDialog>
#include "mysqlconnection.h"
#include <QMessageBox>


namespace Ui {
    class frmKhachHang;
}

class frmKhachHang : public QDialog
{
    Q_OBJECT

public:
    explicit frmKhachHang(QWidget *parent = 0);
    ~frmKhachHang();
    int m_MaKH;
    int m_rowIndex;

private:
    Ui::frmKhachHang *ui;
    MySqlConnection *DB;
    void loadDS();
    bool trangThai;
    QItemSelectionModel *selectionModel;
    void resetTableSelectionEvent();
    void doiButton(bool b);
private slots:
    void themKhachHang();
    void suaKhachHang();
    void xoaKhachHang();
    void Thoat();
    void selectRow();
    void timKiem();

};

#endif // FRMKHACHHANG_H
